#define _CRT_SECURE_NO_WARNINGS 1
#include "SListNode.h"

int main()
{
	SLTNode* plist = (SLTNode*)malloc(sizeof(SLTNode));
	if (plist == NULL)
	{
		perror("malloc fail\n");
		return;
	}
	plist->data = 1;
	plist->next = NULL;

	
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPushBack(&plist, 5);
	SLTPrint(&plist);

	//SLTPopBack(&plist);
	//SLTPrint(&plist);

	//SLTPopFront(&plist);
	//SLTPrint(&plist);

	//SLTNode* find = SLTFind(&plist, 3);
	//SLTInsertFront(&plist, find, 9);
	
	//SLTPrint(&plist);

	SLTDestroy(&plist);
	return 0;
}


